export default {
  height: 'auto',
  calcHeight: 30,
  tip: false,
  searchShow: true,
  searchMenuSpan: 6,
  border: true,
  index: true,
  viewBtn: true,
  selection: true,
  dialogClickModal: false,
  labelWidth: '110',
  column: [
    {
      label: "ID",
      prop: "id",
      type: "input",
      display: false
    },

    // {
    //   label: "是否已删除",
    //   prop: "isDeleted",
    //   type: "input",
    // },
    // {
    //   label: "租户ID",
    //   prop: "tenantId",
    //   type: "input",
    // },
    {
      label: "活动名称",
      prop: "activityName",
      type: "input",
    },
    {
      label: "状态",
      prop: "status",
      type: "radio",
      value: 1,
      dicData: [
        { label: '启用', value: 1 },
        { label: '停用', value: 0 }
      ]
    },
    {
      label: "活动logo",
      prop: "logoUrl",
      type: 'upload',
      listType: 'picture-img',
      dataType: 'string',
      action: '/api/blade-resource/oss/endpoint/put-file',
      propsHttp: {
        res: 'data',
        url: 'link',
      },
      rules: [{
        required: true,
        message: "请上传logo",
        trigger: "change"
      }]
    },
    {
      label: "活动封面",
      prop: "activityImage",
      type: 'upload',
      listType: 'picture-img',
      dataType: 'string',
      action: '/api/blade-resource/oss/endpoint/put-file',
      propsHttp: {
        res: 'data',
        url: 'link',
      },
      rules: [{
        required: true,
        message: "请上传封面图",
        trigger: "change"
      }]
    },
    {
      label: "报名开始时间",
      prop: "registrationStartDate",
      type: "datetime",
      format: 'yyyy-MM-dd HH:mm',
      valueFormat: 'yyyy-MM-dd HH:mm'
    },
    {
      label: "报名结束时间",
      prop: "registrationEndDate",
      type: "datetime",
      format: 'yyyy-MM-dd HH:mm',
      valueFormat: 'yyyy-MM-dd HH:mm'
    },
    {
      label: "人数限制",
      prop: "registrationLimit",
      type: "number",
      min: 1,
      max: 9999,
      rules: [{
        required: true,
        message: "请输入人数限制",
        trigger: "blur"
      }]
    },
    {
      label: "活动描述",
      prop: "activityDescription",
      type: "textarea",
      span: 24,
      hide: true
    },
    {
      label: "创建人",
      prop: "createUser",
      type: "input",
      display: false
    },
    {
      label: "创建时间",
      prop: "createTime",
      type: "input",
      display: false
    }
  ]
}
